package com.oinux.playhelper.receiver;

import com.oinux.playhelper.entity.Constants;
import com.oinux.playhelper.service.MainService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootReceiver extends BroadcastReceiver {

	private static final String TAG = "boot...";

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Constants.ACTION_BOOT)) {
			Log.v(TAG, "手机启动完成..");
			context.startService(new Intent(context, MainService.class));
		}
	}
}